var mongoose = require('mongoose')
var Schema = mongoose.Schema

var userSchema = new Schema({
  userId: Number,
  password: String,
  name: String,
  hiredate: Date,
  entryTo: String,
  currentCity: String,
  projectTeam: String,
  status: String,
  consumer: String,
  addAccess: Boolean,
  deleteAccess: Boolean,
  updateAccess: Boolean,
  findAccess: Boolean
},{versionKey: false})
// var userSchema = new Schema({
//   staffData: Array
// },{versionKey: false})

module.exports =  mongoose.model('User',userSchema)
